//-----------------------------------------------------------------------
// <copyright file="a_EmailFriendService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_EmailFriendService
    {
        #region a_EmailFriend

        public static void Createa_EmailFriend(a_EmailFriend a_EmailFriend)
        {            
            try
            {
                a_EmailFriendDAO a_EmailFriendDAO = new a_EmailFriendDAO();
                a_EmailFriendDAO.Createa_EmailFriend(a_EmailFriend);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_EmailFriend(a_EmailFriend a_EmailFriend)
        {            
            try
            {
                a_EmailFriendDAO a_EmailFriendDAO = new a_EmailFriendDAO();
                a_EmailFriendDAO.Updatea_EmailFriend(a_EmailFriend);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_EmailFriend(int id)
        {            
            try
            {
                a_EmailFriendDAO a_EmailFriendDAO = new a_EmailFriendDAO();
                a_EmailFriendDAO.Deletea_EmailFriend(id);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_EmailFriend Geta_EmailFriend(int id)
        {            
            try
            {
                a_EmailFriendDAO a_EmailFriendDAO = new a_EmailFriendDAO();
                return a_EmailFriendDAO.Geta_EmailFriend(id);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_EmailFriendCollection Geta_EmailFriendList(a_EmailFriendColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_EmailFriendDAO a_EmailFriendDAO = new a_EmailFriendDAO();
                return a_EmailFriendDAO.Geta_EmailFriendList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_EmailFriendCollection Geta_EmailFriendList(a_EmailFriendColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_EmailFriendDAO a_EmailFriendDAO = new a_EmailFriendDAO();
                return a_EmailFriendDAO.Geta_EmailFriendList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        #endregion
    }
}